import request from '@/utils/request'

const api = {
  list: '/system/clients/getClientsList',
  update: '/system/clients/updateClients',
  add: '/system/clients/addClients',
  del: '/system/clients/delClients',
  read: '/system/clients/clientsParticulars',
  version: '/system/clients/alternativeVersion',
  status:'/system/clients/setState'
}

export default api

export function getClientsList (parameter) {
  return request({
    url: api.list,
    method: 'POST',
    data: parameter
  })
}

export function updateClients (parameter) {
  return request({
    url: api.update,
    method: 'POST',
    data: parameter
  })
}

export function delClients (parameter) {
  return request({
    url: api.del,
    method: 'POST',
    data: parameter
  })
}

export function addClients (parameter) {
  return request({
    url: api.add,
    method: 'POST',
    data: parameter
  })
}

export function readClients (parameter) {
  return request({
    url: api.read,
    method: 'POST',
    data: parameter
  })
}

export function versionClients (parameter) {
  return request({
    url: api.version,
    method: 'POST',
    data: parameter
  })
}

export function statusClients (parameter) {
  return request({
    url: api.status,
    method: 'POST',
    data: parameter
  })
}

